/**
 * Copyright (c) 2015-2017, Henry Yang 杨勇 (gismail@foxmail.com).
 * <p>
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * <p>
 * http://www.apache.org/licenses/LICENSE-2.0
 * <p>
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.lambkit.module.ucenter.rpc.model.sql;

import com.lambkit.db.sql.ConditionMode;
import com.lambkit.db.sql.column.Column;
import com.lambkit.db.sql.column.Columns;
import com.lambkit.db.sql.column.Example;

import java.io.Serializable;
import java.util.List;

/**
 * @author Henry 杨勇 (孤竹行) 
 * @website: www.lambkit.com
 * @email: gismail@foxmail.com
 * @date 2019-11-05
 * @version 1.0
 * @since 1.0
 */
public class UcenterUserOauthCriteria extends Columns implements Serializable {
	private static final long serialVersionUID = 1L;
	
	public static UcenterUserOauthCriteria create() {
		return new UcenterUserOauthCriteria();
	}
	
	public static UcenterUserOauthCriteria create(Column column) {
		UcenterUserOauthCriteria that = new UcenterUserOauthCriteria();
		that.add(column);
        return that;
    }

    public static UcenterUserOauthCriteria create(String name, Object value) {
        return (UcenterUserOauthCriteria) create().eq(name, value);
    }
    
    public Example example() {
    	return Example.create("ucenter_user_oauth", this);
    }
    
    /**
     * equals
     *
     * @param name
     * @param value
     * @return
     */
    public UcenterUserOauthCriteria eq(String name, Object value) {
    	super.eq(name, value);
        return this;
    }

    /**
     * not equals !=
     *
     * @param name
     * @param value
     * @return
     */
    public UcenterUserOauthCriteria ne(String name, Object value) {
    	super.ne(name, value);
        return this;
    }


    /**
     * like
     *
     * @param name
     * @param value
     * @return
     */

    public UcenterUserOauthCriteria like(String name, Object value) {
    	super.like(name, value);
        return this;
    }
    
    public UcenterUserOauthCriteria notLike(String name, Object value) {
    	super.notLike(name, value);
        return this;
    }

    /**
     * 大于 great than
     *
     * @param name
     * @param value
     * @return
     */
    public UcenterUserOauthCriteria gt(String name, Object value) {
    	super.gt(name, value);
        return this;
    }

    /**
     * 大于等于 great or equal
     *
     * @param name
     * @param value
     * @return
     */
    public UcenterUserOauthCriteria ge(String name, Object value) {
    	super.ge(name, value);
        return this;
    }

    /**
     * 小于 less than
     *
     * @param name
     * @param value
     * @return
     */
    public UcenterUserOauthCriteria lt(String name, Object value) {
    	super.lt(name, value);
        return this;
    }

    /**
     * 小于等于 less or equal
     *
     * @param name
     * @param value
     * @return
     */
    public UcenterUserOauthCriteria le(String name, Object value) {
    	super.le(name, value);
        return this;
    }
    
    public UcenterUserOauthCriteria isnull(String name) {
    	super.isnull(name);
        return this;
    } 

    public UcenterUserOauthCriteria notNull(String name) {
    	super.notNull(name);
        return this;
    } 
    
    public UcenterUserOauthCriteria empty(String name) {
    	super.empty(name);
        return this;
    } 
    
    public UcenterUserOauthCriteria notEmpty(String name) {
    	super.notEmpty(name);
        return this;
    } 
    
    public UcenterUserOauthCriteria add(Column column) {
    	super.add(column);
    	return this;
    }
    
    /**************************/
	
	public void addCriterion(String name, Object value, ConditionMode logic, String property, String typeHandler, String valueType) {
		 if (value == null) {
			 throw new RuntimeException("Value for " + property + " cannot be null");
		 }
		 add(Column.create(name, value, logic, typeHandler, valueType));
	}
   
	public void addCriterion(String name, Object value1, Object value2, ConditionMode logic, String property, String typeHandler, String valueType) {
		 if (value1 == null || value2 == null) {
			 throw new RuntimeException("Between values for " + property + " cannot be null");
		 }
		 add(Column.create(name, value1, value2, logic, typeHandler, valueType));
	}
		 
	public UcenterUserOauthCriteria andUserOauthIdIsNull() {
		isnull("user_oauth_id");
		return this;
	}
	
	public UcenterUserOauthCriteria andUserOauthIdIsNotNull() {
		notNull("user_oauth_id");
		return this;
	}
	
	public UcenterUserOauthCriteria andUserOauthIdIsEmpty() {
		empty("user_oauth_id");
		return this;
	}

	public UcenterUserOauthCriteria andUserOauthIdIsNotEmpty() {
		notEmpty("user_oauth_id");
		return this;
	}
       public UcenterUserOauthCriteria andUserOauthIdEqualTo(java.lang.Long value) {
          addCriterion("user_oauth_id", value, ConditionMode.EQUAL, "userOauthId", "java.lang.Long", "Float");
          return this;
      }

      public UcenterUserOauthCriteria andUserOauthIdNotEqualTo(java.lang.Long value) {
          addCriterion("user_oauth_id", value, ConditionMode.NOT_EQUAL, "userOauthId", "java.lang.Long", "Float");
          return this;
      }

      public UcenterUserOauthCriteria andUserOauthIdGreaterThan(java.lang.Long value) {
          addCriterion("user_oauth_id", value, ConditionMode.GREATER_THEN, "userOauthId", "java.lang.Long", "Float");
          return this;
      }

      public UcenterUserOauthCriteria andUserOauthIdGreaterThanOrEqualTo(java.lang.Long value) {
          addCriterion("user_oauth_id", value, ConditionMode.GREATER_EQUAL, "userOauthId", "java.lang.Long", "Float");
          return this;
      }

      public UcenterUserOauthCriteria andUserOauthIdLessThan(java.lang.Long value) {
          addCriterion("user_oauth_id", value, ConditionMode.LESS_THEN, "userOauthId", "java.lang.Long", "Float");
          return this;
      }

      public UcenterUserOauthCriteria andUserOauthIdLessThanOrEqualTo(java.lang.Long value) {
          addCriterion("user_oauth_id", value, ConditionMode.LESS_EQUAL, "userOauthId", "java.lang.Long", "Float");
          return this;
      }

      public UcenterUserOauthCriteria andUserOauthIdBetween(java.lang.Long value1, java.lang.Long value2) {
    	  addCriterion("user_oauth_id", value1, value2, ConditionMode.BETWEEN, "userOauthId", "java.lang.Long", "Float");
    	  return this;
      }

      public UcenterUserOauthCriteria andUserOauthIdNotBetween(java.lang.Long value1, java.lang.Long value2) {
          addCriterion("user_oauth_id", value1, value2, ConditionMode.NOT_BETWEEN, "userOauthId", "java.lang.Long", "Float");
          return this;
      }
        
      public UcenterUserOauthCriteria andUserOauthIdIn(List<java.lang.Long> values) {
          addCriterion("user_oauth_id", values, ConditionMode.IN, "userOauthId", "java.lang.Long", "Float");
          return this;
      }

      public UcenterUserOauthCriteria andUserOauthIdNotIn(List<java.lang.Long> values) {
          addCriterion("user_oauth_id", values, ConditionMode.NOT_IN, "userOauthId", "java.lang.Long", "Float");
          return this;
      }
	public UcenterUserOauthCriteria andUserIdIsNull() {
		isnull("user_id");
		return this;
	}
	
	public UcenterUserOauthCriteria andUserIdIsNotNull() {
		notNull("user_id");
		return this;
	}
	
	public UcenterUserOauthCriteria andUserIdIsEmpty() {
		empty("user_id");
		return this;
	}

	public UcenterUserOauthCriteria andUserIdIsNotEmpty() {
		notEmpty("user_id");
		return this;
	}
       public UcenterUserOauthCriteria andUserIdEqualTo(java.lang.Long value) {
          addCriterion("user_id", value, ConditionMode.EQUAL, "userId", "java.lang.Long", "Float");
          return this;
      }

      public UcenterUserOauthCriteria andUserIdNotEqualTo(java.lang.Long value) {
          addCriterion("user_id", value, ConditionMode.NOT_EQUAL, "userId", "java.lang.Long", "Float");
          return this;
      }

      public UcenterUserOauthCriteria andUserIdGreaterThan(java.lang.Long value) {
          addCriterion("user_id", value, ConditionMode.GREATER_THEN, "userId", "java.lang.Long", "Float");
          return this;
      }

      public UcenterUserOauthCriteria andUserIdGreaterThanOrEqualTo(java.lang.Long value) {
          addCriterion("user_id", value, ConditionMode.GREATER_EQUAL, "userId", "java.lang.Long", "Float");
          return this;
      }

      public UcenterUserOauthCriteria andUserIdLessThan(java.lang.Long value) {
          addCriterion("user_id", value, ConditionMode.LESS_THEN, "userId", "java.lang.Long", "Float");
          return this;
      }

      public UcenterUserOauthCriteria andUserIdLessThanOrEqualTo(java.lang.Long value) {
          addCriterion("user_id", value, ConditionMode.LESS_EQUAL, "userId", "java.lang.Long", "Float");
          return this;
      }

      public UcenterUserOauthCriteria andUserIdBetween(java.lang.Long value1, java.lang.Long value2) {
    	  addCriterion("user_id", value1, value2, ConditionMode.BETWEEN, "userId", "java.lang.Long", "Float");
    	  return this;
      }

      public UcenterUserOauthCriteria andUserIdNotBetween(java.lang.Long value1, java.lang.Long value2) {
          addCriterion("user_id", value1, value2, ConditionMode.NOT_BETWEEN, "userId", "java.lang.Long", "Float");
          return this;
      }
        
      public UcenterUserOauthCriteria andUserIdIn(List<java.lang.Long> values) {
          addCriterion("user_id", values, ConditionMode.IN, "userId", "java.lang.Long", "Float");
          return this;
      }

      public UcenterUserOauthCriteria andUserIdNotIn(List<java.lang.Long> values) {
          addCriterion("user_id", values, ConditionMode.NOT_IN, "userId", "java.lang.Long", "Float");
          return this;
      }
	public UcenterUserOauthCriteria andOauthIdIsNull() {
		isnull("oauth_id");
		return this;
	}
	
	public UcenterUserOauthCriteria andOauthIdIsNotNull() {
		notNull("oauth_id");
		return this;
	}
	
	public UcenterUserOauthCriteria andOauthIdIsEmpty() {
		empty("oauth_id");
		return this;
	}

	public UcenterUserOauthCriteria andOauthIdIsNotEmpty() {
		notEmpty("oauth_id");
		return this;
	}
       public UcenterUserOauthCriteria andOauthIdEqualTo(java.lang.Long value) {
          addCriterion("oauth_id", value, ConditionMode.EQUAL, "oauthId", "java.lang.Long", "Float");
          return this;
      }

      public UcenterUserOauthCriteria andOauthIdNotEqualTo(java.lang.Long value) {
          addCriterion("oauth_id", value, ConditionMode.NOT_EQUAL, "oauthId", "java.lang.Long", "Float");
          return this;
      }

      public UcenterUserOauthCriteria andOauthIdGreaterThan(java.lang.Long value) {
          addCriterion("oauth_id", value, ConditionMode.GREATER_THEN, "oauthId", "java.lang.Long", "Float");
          return this;
      }

      public UcenterUserOauthCriteria andOauthIdGreaterThanOrEqualTo(java.lang.Long value) {
          addCriterion("oauth_id", value, ConditionMode.GREATER_EQUAL, "oauthId", "java.lang.Long", "Float");
          return this;
      }

      public UcenterUserOauthCriteria andOauthIdLessThan(java.lang.Long value) {
          addCriterion("oauth_id", value, ConditionMode.LESS_THEN, "oauthId", "java.lang.Long", "Float");
          return this;
      }

      public UcenterUserOauthCriteria andOauthIdLessThanOrEqualTo(java.lang.Long value) {
          addCriterion("oauth_id", value, ConditionMode.LESS_EQUAL, "oauthId", "java.lang.Long", "Float");
          return this;
      }

      public UcenterUserOauthCriteria andOauthIdBetween(java.lang.Long value1, java.lang.Long value2) {
    	  addCriterion("oauth_id", value1, value2, ConditionMode.BETWEEN, "oauthId", "java.lang.Long", "Float");
    	  return this;
      }

      public UcenterUserOauthCriteria andOauthIdNotBetween(java.lang.Long value1, java.lang.Long value2) {
          addCriterion("oauth_id", value1, value2, ConditionMode.NOT_BETWEEN, "oauthId", "java.lang.Long", "Float");
          return this;
      }
        
      public UcenterUserOauthCriteria andOauthIdIn(List<java.lang.Long> values) {
          addCriterion("oauth_id", values, ConditionMode.IN, "oauthId", "java.lang.Long", "Float");
          return this;
      }

      public UcenterUserOauthCriteria andOauthIdNotIn(List<java.lang.Long> values) {
          addCriterion("oauth_id", values, ConditionMode.NOT_IN, "oauthId", "java.lang.Long", "Float");
          return this;
      }
	public UcenterUserOauthCriteria andOpenIdIsNull() {
		isnull("open_id");
		return this;
	}
	
	public UcenterUserOauthCriteria andOpenIdIsNotNull() {
		notNull("open_id");
		return this;
	}
	
	public UcenterUserOauthCriteria andOpenIdIsEmpty() {
		empty("open_id");
		return this;
	}

	public UcenterUserOauthCriteria andOpenIdIsNotEmpty() {
		notEmpty("open_id");
		return this;
	}
       public UcenterUserOauthCriteria andOpenIdEqualTo(byte[] value) {
          addCriterion("open_id", value, ConditionMode.EQUAL, "openId", "byte[]", "String");
          return this;
      }

      public UcenterUserOauthCriteria andOpenIdNotEqualTo(byte[] value) {
          addCriterion("open_id", value, ConditionMode.NOT_EQUAL, "openId", "byte[]", "String");
          return this;
      }

      public UcenterUserOauthCriteria andOpenIdGreaterThan(byte[] value) {
          addCriterion("open_id", value, ConditionMode.GREATER_THEN, "openId", "byte[]", "String");
          return this;
      }

      public UcenterUserOauthCriteria andOpenIdGreaterThanOrEqualTo(byte[] value) {
          addCriterion("open_id", value, ConditionMode.GREATER_EQUAL, "openId", "byte[]", "String");
          return this;
      }

      public UcenterUserOauthCriteria andOpenIdLessThan(byte[] value) {
          addCriterion("open_id", value, ConditionMode.LESS_THEN, "openId", "byte[]", "String");
          return this;
      }

      public UcenterUserOauthCriteria andOpenIdLessThanOrEqualTo(byte[] value) {
          addCriterion("open_id", value, ConditionMode.LESS_EQUAL, "openId", "byte[]", "String");
          return this;
      }

      public UcenterUserOauthCriteria andOpenIdBetween(byte[] value1, byte[] value2) {
    	  addCriterion("open_id", value1, value2, ConditionMode.BETWEEN, "openId", "byte[]", "String");
    	  return this;
      }

      public UcenterUserOauthCriteria andOpenIdNotBetween(byte[] value1, byte[] value2) {
          addCriterion("open_id", value1, value2, ConditionMode.NOT_BETWEEN, "openId", "byte[]", "String");
          return this;
      }
        
      public UcenterUserOauthCriteria andOpenIdIn(List<byte[]> values) {
          addCriterion("open_id", values, ConditionMode.IN, "openId", "byte[]", "String");
          return this;
      }

      public UcenterUserOauthCriteria andOpenIdNotIn(List<byte[]> values) {
          addCriterion("open_id", values, ConditionMode.NOT_IN, "openId", "byte[]", "String");
          return this;
      }
	public UcenterUserOauthCriteria andStatusIsNull() {
		isnull("status");
		return this;
	}
	
	public UcenterUserOauthCriteria andStatusIsNotNull() {
		notNull("status");
		return this;
	}
	
	public UcenterUserOauthCriteria andStatusIsEmpty() {
		empty("status");
		return this;
	}

	public UcenterUserOauthCriteria andStatusIsNotEmpty() {
		notEmpty("status");
		return this;
	}
       public UcenterUserOauthCriteria andStatusEqualTo(java.lang.Integer value) {
          addCriterion("status", value, ConditionMode.EQUAL, "status", "java.lang.Integer", "Float");
          return this;
      }

      public UcenterUserOauthCriteria andStatusNotEqualTo(java.lang.Integer value) {
          addCriterion("status", value, ConditionMode.NOT_EQUAL, "status", "java.lang.Integer", "Float");
          return this;
      }

      public UcenterUserOauthCriteria andStatusGreaterThan(java.lang.Integer value) {
          addCriterion("status", value, ConditionMode.GREATER_THEN, "status", "java.lang.Integer", "Float");
          return this;
      }

      public UcenterUserOauthCriteria andStatusGreaterThanOrEqualTo(java.lang.Integer value) {
          addCriterion("status", value, ConditionMode.GREATER_EQUAL, "status", "java.lang.Integer", "Float");
          return this;
      }

      public UcenterUserOauthCriteria andStatusLessThan(java.lang.Integer value) {
          addCriterion("status", value, ConditionMode.LESS_THEN, "status", "java.lang.Integer", "Float");
          return this;
      }

      public UcenterUserOauthCriteria andStatusLessThanOrEqualTo(java.lang.Integer value) {
          addCriterion("status", value, ConditionMode.LESS_EQUAL, "status", "java.lang.Integer", "Float");
          return this;
      }

      public UcenterUserOauthCriteria andStatusBetween(java.lang.Integer value1, java.lang.Integer value2) {
    	  addCriterion("status", value1, value2, ConditionMode.BETWEEN, "status", "java.lang.Integer", "Float");
    	  return this;
      }

      public UcenterUserOauthCriteria andStatusNotBetween(java.lang.Integer value1, java.lang.Integer value2) {
          addCriterion("status", value1, value2, ConditionMode.NOT_BETWEEN, "status", "java.lang.Integer", "Float");
          return this;
      }
        
      public UcenterUserOauthCriteria andStatusIn(List<java.lang.Integer> values) {
          addCriterion("status", values, ConditionMode.IN, "status", "java.lang.Integer", "Float");
          return this;
      }

      public UcenterUserOauthCriteria andStatusNotIn(List<java.lang.Integer> values) {
          addCriterion("status", values, ConditionMode.NOT_IN, "status", "java.lang.Integer", "Float");
          return this;
      }
	public UcenterUserOauthCriteria andCreateTimeIsNull() {
		isnull("create_time");
		return this;
	}
	
	public UcenterUserOauthCriteria andCreateTimeIsNotNull() {
		notNull("create_time");
		return this;
	}
	
	public UcenterUserOauthCriteria andCreateTimeIsEmpty() {
		empty("create_time");
		return this;
	}

	public UcenterUserOauthCriteria andCreateTimeIsNotEmpty() {
		notEmpty("create_time");
		return this;
	}
       public UcenterUserOauthCriteria andCreateTimeEqualTo(java.util.Date value) {
          addCriterion("create_time", value, ConditionMode.EQUAL, "createTime", "java.util.Date", "String");
          return this;
      }

      public UcenterUserOauthCriteria andCreateTimeNotEqualTo(java.util.Date value) {
          addCriterion("create_time", value, ConditionMode.NOT_EQUAL, "createTime", "java.util.Date", "String");
          return this;
      }

      public UcenterUserOauthCriteria andCreateTimeGreaterThan(java.util.Date value) {
          addCriterion("create_time", value, ConditionMode.GREATER_THEN, "createTime", "java.util.Date", "String");
          return this;
      }

      public UcenterUserOauthCriteria andCreateTimeGreaterThanOrEqualTo(java.util.Date value) {
          addCriterion("create_time", value, ConditionMode.GREATER_EQUAL, "createTime", "java.util.Date", "String");
          return this;
      }

      public UcenterUserOauthCriteria andCreateTimeLessThan(java.util.Date value) {
          addCriterion("create_time", value, ConditionMode.LESS_THEN, "createTime", "java.util.Date", "String");
          return this;
      }

      public UcenterUserOauthCriteria andCreateTimeLessThanOrEqualTo(java.util.Date value) {
          addCriterion("create_time", value, ConditionMode.LESS_EQUAL, "createTime", "java.util.Date", "String");
          return this;
      }

      public UcenterUserOauthCriteria andCreateTimeBetween(java.util.Date value1, java.util.Date value2) {
    	  addCriterion("create_time", value1, value2, ConditionMode.BETWEEN, "createTime", "java.util.Date", "String");
    	  return this;
      }

      public UcenterUserOauthCriteria andCreateTimeNotBetween(java.util.Date value1, java.util.Date value2) {
          addCriterion("create_time", value1, value2, ConditionMode.NOT_BETWEEN, "createTime", "java.util.Date", "String");
          return this;
      }
        
      public UcenterUserOauthCriteria andCreateTimeIn(List<java.util.Date> values) {
          addCriterion("create_time", values, ConditionMode.IN, "createTime", "java.util.Date", "String");
          return this;
      }

      public UcenterUserOauthCriteria andCreateTimeNotIn(List<java.util.Date> values) {
          addCriterion("create_time", values, ConditionMode.NOT_IN, "createTime", "java.util.Date", "String");
          return this;
      }
}